package jp.co.lkg.springsmp.common.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import jp.co.lkg.springsmp.common.dao.UserinfoDao;
import jp.co.lkg.springsmp.common.db.dto.UserinfoDto;
import jp.co.lkg.springsmp.common.db.mapper.UserinfoMapper;


@Component
public class UserinfoDaoImpl implements UserinfoDao
{

	@Autowired
	private UserinfoMapper userinfoMapper;

	@Override
	public UserinfoDto selectByPk(UserinfoDto dto) {
		
		return userinfoMapper.selectByPk(dto);
	}

	@Override
	public UserinfoDto selectByPkForUpdate(UserinfoDto dto) {
		return userinfoMapper.selectByPkForUpdate(dto);
	}

	@Override
	public void insert(UserinfoDto dto) {
		userinfoMapper.insert(dto);
		
	}

	@Override
	public void updateByPk(UserinfoDto dto) {
		userinfoMapper.updateByPk(dto);
		
	}

	@Override
	public void deleteByPk(UserinfoDto dto) {
		userinfoMapper.deleteByPk(dto);
		
	}

	@Override
	public void updateIncludeNull(UserinfoDto dto) {
		userinfoMapper.updateIncludeNull(dto);
		
	}

	@Override
	public List<UserinfoDto> select(UserinfoDto dto) {
		return userinfoMapper.select(dto);
	}

	@Override
	public String findStatus(String username) {
		// TODO Auto-generated method stub
		return userinfoMapper.findStatus(username);
	}

	@Override
	public String findId(String username) {
		// TODO Auto-generated method stub
		return userinfoMapper.findId(username);
	}

	@Override
	public List<UserinfoDto> selectAllUser(UserinfoDto dto) {
		// TODO Auto-generated method stub
		return userinfoMapper.selectAllUser(dto);
	}

	@Override
	public int selectAllPage() {
		// TODO Auto-generated method stub
		return userinfoMapper.selectAllPage();
	}

	

	

	
}
